Optimal. Leaf size=57 \[ -\frac{d \left (a+b \tan ^{-1}(c x)\right )}{x}+e x \left (a+b \tan ^{-1}(c x)\right )-\frac{b \left (c^2 d+e\right ) \log \left (c^2 x^2+1\right )}{2 c}+b c d \log (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0765387, antiderivative size = 57, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.21, Rules used = {14, 4976, 446, 72} \[ -\frac{d \left (a+b \tan ^{-1}(c x)\right )}{x}+e x \left (a+b \tan ^{-1}(c x)\right )-\frac{b \left (c^2 d+e\right ) \log \left (c^2 x^2+1\right )}{2 c}+b c d \log (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 4976
Rule 446
Rule 72
Rubi steps
\begin{align*} \int \frac{\left (d+e x^2\right ) \left (a+b \tan ^{-1}(c x)\right )}{x^2} \, dx &=-\frac{d \left (a+b \tan ^{-1}(c x)\right )}{x}+e x \left (a+b \tan ^{-1}(c x)\right )-(b c) \int \frac{-d+e x^2}{x \left (1+c^2 x^2\right )} \, dx\\ &=-\frac{d \left (a+b \tan ^{-1}(c x)\right )}{x}+e x \left (a+b \tan ^{-1}(c x)\right )-\frac{1}{2} (b c) \operatorname{Subst}\left (\int \frac{-d+e x}{x \left (1+c^2 x\right )} \, dx,x,x^2\right )\\ &=-\frac{d \left (a+b \tan ^{-1}(c x)\right )}{x}+e x \left (a+b \tan ^{-1}(c x)\right )-\frac{1}{2} (b c) \operatorname{Subst}\left (\int \left (-\frac{d}{x}+\frac{c^2 d+e}{1+c^2 x}\right ) \, dx,x,x^2\right )\\ &=-\frac{d \left (a+b \tan ^{-1}(c x)\right )}{x}+e x \left (a+b \tan ^{-1}(c x)\right )+b c d \log (x)-\frac{b \left (c^2 d+e\right ) \log \left (1+c^2 x^2\right )}{2 c}\\ \end{align*}
Mathematica [A] time = 0.0049527, size = 73, normalized size = 1.28 \[ -\frac{a d}{x}+a e x-\frac{1}{2} b c d \log \left (c^2 x^2+1\right )-\frac{b e \log \left (c^2 x^2+1\right )}{2 c}+b c d \log (x)-\frac{b d \tan ^{-1}(c x)}{x}+b e x \tan ^{-1}(c x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.04, size = 72, normalized size = 1.3 \begin{align*} aex-{\frac{ad}{x}}+bex\arctan \left ( cx \right ) -{\frac{\arctan \left ( cx \right ) bd}{x}}-{\frac{bcd\ln \left ({c}^{2}{x}^{2}+1 \right ) }{2}}-{\frac{be\ln \left ({c}^{2}{x}^{2}+1 \right ) }{2\,c}}+cbd\ln \left ( cx \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.944748, size = 99, normalized size = 1.74 \begin{align*} -\frac{1}{2} \,{\left (c{\left (\log \left (c^{2} x^{2} + 1\right ) - \log \left (x^{2}\right )\right )} + \frac{2 \, \arctan \left (c x\right )}{x}\right )} b d + a e x + \frac{{\left (2 \, c x \arctan \left (c x\right ) - \log \left (c^{2} x^{2} + 1\right )\right )} b e}{2 \, c} - \frac{a d}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.66704, size = 174, normalized size = 3.05 \begin{align*} \frac{2 \, b c^{2} d x \log \left (x\right ) + 2 \, a c e x^{2} - 2 \, a c d -{\left (b c^{2} d + b e\right )} x \log \left (c^{2} x^{2} + 1\right ) + 2 \,{\left (b c e x^{2} - b c d\right )} \arctan \left (c x\right )}{2 \, c x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.43454, size = 80, normalized size = 1.4 \begin{align*} \begin{cases} - \frac{a d}{x} + a e x + b c d \log{\left (x \right )} - \frac{b c d \log{\left (x^{2} + \frac{1}{c^{2}} \right )}}{2} - \frac{b d \operatorname{atan}{\left (c x \right )}}{x} + b e x \operatorname{atan}{\left (c x \right )} - \frac{b e \log{\left (x^{2} + \frac{1}{c^{2}} \right )}}{2 c} & \text{for}\: c \neq 0 \\a \left (- \frac{d}{x} + e x\right ) & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.09957, size = 120, normalized size = 2.11 \begin{align*} \frac{2 \, b c x^{2} \arctan \left (c x\right ) e - b c^{2} d x \log \left (c^{2} x^{2} + 1\right ) + 2 \, b c^{2} d x \log \left (x\right ) + 2 \, a c x^{2} e - 2 \, b c d \arctan \left (c x\right ) - b x e \log \left (c^{2} x^{2} + 1\right ) - 2 \, a c d}{2 \, c x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]